package com.jvyou.app.ds.domain.dto;

import com.jvyou.app.ds.domain.entity.SparkMessage;
import lombok.Data;

import java.util.List;

/**
 * 星火消息响应信息
 *
 * @author 橘柚
 * @since 2024/12/20 12:25
 */
@Data
public class SparkResponseDto {

    private Integer code;
    private String message;
    private String sid;
    private List<Choice> choices;
    private Usage usage;

    @Data
    public static class Choice {
        private SparkMessage message;
        private Integer index;

    }

    @Data
    public static class Usage {
        private Integer promptTokens;
        private Integer completionTokens;
        private Integer totalTokens;
    }
}
